export const yunProviderModule = function (ops) {
  var addElementTypes = function (context) {
    context.removePrintElementTypes("yunProviderModule");
    context.addPrintElementTypes(
      "yunProviderModule",
      [
        new hiprint.PrintElementTypeGroup("系统", [
          {
            tid: 'yunProviderModule.documentNumber', title: '单据编号', data: '单据编号', type: 'text',
            options: {
              testData: '单据编号: @单据编号',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.documentDate', title: '单据日期', data: '单据日期', type: 'text',
            options: {
              testData: '单据日期: @单据日期',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.employee', title: '制单人', data: '制单人', type: 'text',
            options: {
              testData: '制单人: @制单人',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.settlementAccount', title: '结算账户', data: '2020-01-01', type: 'text',
            options: {
              testData: '结算账户: @结算账户',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.accountRemarks', title: '结算账户备注', data: 'XS888888888', type: 'text',
            options: {
              testData: '结算账户备注: @结算账户备注',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.printTime', title: '打印时间', data: 'XS888888888', type: 'text',
            options: {
              testData: '打印时间: @打印时间',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.documentRemarks', title: '单据备注', data: '平台名称', type: 'text',
            options: {
              testData: '单据备注: @单据备注',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.warehouse', title: '仓库', data: '平台名称', type: 'text',
            options: {
              testData: '仓库: @仓库',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.shopName', title: '@门店名称', data: '平台名称', type: 'text',
            options: {
              testData: '@门店名称',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.shopAddress', title: '@门店地址', data: '平台名称', type: 'text',
            options: {
              testData: '@门店地址',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
        ]),
        new hiprint.PrintElementTypeGroup("金额数量", [
          {
            tid: 'yunProviderModule.documentAmount', title: '单据金额', data: '单据金额', type: 'text',
            options: {
              testData: '单据金额: @单据金额',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.discountedAmount', title: '折后金额', data: '折后金额', type: 'text',
            options: {
              testData: '折后金额: @折后金额',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.otherAmount', title: '其他费用', data: '其他费用', type: 'text',
            options: {
              testData: '其他费用: @其他费用',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.payableAmount', title: '应付金额', data: 'XS888888888', type: 'text',
            options: {
              testData: '应付金额: @应付金额',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.uppercaseAmount', title: '应付大写', data: 'XS888888888', type: 'text',
            options: {
              testData: '应付大写: @应付大写',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.totalAmount', title: '合计实付', data: 'XS888888888', type: 'text',
            options: {
              testData: '合计实付: @合计实付',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.dueAmount', title: '本单欠款', data: '本单欠款', type: 'text',
            options: {
              testData: '本单欠款: @本单欠款',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.frontAmount', title: '前期欠款', data: '前期欠款', type: 'text',
            options: {
              testData: '前期欠款: @前期欠款',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.totalDueAmount', title: '累计欠款', data: '累计欠款', type: 'text',
            options: {
              testData: '累计欠款: @累计欠款',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.totalNumber', title: '合计数量', data: '合计数量', type: 'text',
            options: {
              testData: '合计数量: @合计数量',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.deposit', title: '定金', data: '定金', type: 'text',
            options: {
              testData: '定金: @定金',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
        ]),
        new hiprint.PrintElementTypeGroup("供应商相关", [
          {
            tid: 'yunProviderModule.contacts', title: '供应商名称', data: '供应商名称', type: 'text',
            options: {
              testData: '供应商名称: @供应商名称',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.supplierNumber', title: '供应商编号', data: '供应商编号', type: 'text',
            options: {
              testData: '供应商编号: @供应商编号',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.supplierBank', title: '供应商开户行', data: '供应商开户行', type: 'text',
            options: {
              testData: '供应商开户行: @供应商开户行',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.supplierBankcard', title: '供应商银行账户', data: '供应商银行账户', type: 'text',
            options: {
              testData: '供应商银行账户: @供应商银行账户',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.supplierDutyParagraph', title: '供应商税号', data: '供应商税号', type: 'text',
            options: {
              testData: '供应商税号: @供应商税号',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.supplierEmail', title: '供应商邮箱', data: '供应商邮箱', type: 'text',
            options: {
              testData: '供应商邮箱: @供应商邮箱',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.supplierRemarks', title: '供应商备注', data: '供应商备注', type: 'text',
            options: {
              testData: '供应商备注: @供应商备注',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.supplierClassify', title: '供应商分类', data: '供应商分类', type: 'text',
            options: {
              testData: '供应商分类: @供应商分类',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.supplierBalance', title: '供应商余额', data: '供应商余额', type: 'text',
            options: {
              testData: '供应商余额: @供应商余额',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
        ]),
        new hiprint.PrintElementTypeGroup("联系信息", [
          {
            tid: 'yunProviderModule.contacts', title: '联系人', data: '联系人', type: 'text',
            options: {
              testData: '联系人: @联系人',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.telephone', title: '联系电话', data: '联系电话', type: 'text',
            options: {
              testData: '联系电话: @联系电话',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.ship', title: '送货地址', data: '送货地址', type: 'text',
            options: {
              testData: '送货地址: @送货地址',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
        ]),
        new hiprint.PrintElementTypeGroup("常用", [
          {
            tid: 'yunProviderModule.documentHeader', title: '单据抬头', data: '单据抬头', type: 'text',
            options: {
              testData: '单据抬头',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.companyAddress', title: '公司地址', data: '公司地址', type: 'text',
            options: {
              testData: '公司地址',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.explain', title: '多联说明', data: '多联说明', type: 'text',
            options: {
              testData: '多联说明',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
          {
            tid: 'yunProviderModule.mainProducts', title: '主营：', data: '主营：', type: 'text',
            options: {
              testData: '主营：',
              height: 18,
              fontSize: 10.5,
              field: "headera",
              fontWeight: "",
              color: "#000",
              textAlign: "left",
              textContentVerticalAlign: "middle",
              hideTitle: true
            }
          },
        ]),
      ]
    );
  };
  return {
    addElementTypes: addElementTypes
  };
};

